package com.easy.cart.controller;

import com.easy.cart.service.ICartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("cart/feign")
@CrossOrigin
public class CartFeignController {
@Autowired
    ICartService cartS;
@RequestMapping(method = RequestMethod.DELETE,path = "/{userid}/{productid}")
    public int deleteCart(@PathVariable("userid") int userid,@PathVariable("productid") int productid){
       return cartS.deleteCart(userid,productid);
    }
}
